﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataBaseLib.Entities.BaseEntity
{
    public class BaseModel
    {
        public BaseModel()
        {
            CreateTime = DateTime.Now;
        }
        /// <summary>
        /// 自增主键
        /// </summary>
        [SugarColumn(IsPrimaryKey =true,IsIdentity =true,ColumnDescription ="自增主键")]
        public int Id {  get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public DateTime CreateTime {  get; set; }
        /// <summary>
        /// 更新时间 可空
        /// </summary>
        [SugarColumn(IsNullable =true,ColumnDescription = "更新时间")]
        public DateTime UpdateTime {  get; set; }
    }
}
